package com.mijie.homi.admin.dao.channel;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.mijie.core.IBatisDao;
import com.mijie.homi.admin.domain.commom.Channel;

@Repository
public class ChannelDao extends IBatisDao{
	
	public List<Channel> listChannel(){
		return this.selectList("listChannel");
	}
	
	public int createChannel(String name){
		return this.insert("createChannel",name);
	}
	
	public int updateChannel(Channel channel){
		return this.update("updateChannel",channel);
	}
	
	public Channel getChannel(int id){
		return this.selectOne("getChannel",id);
	}
}
